import hashlib

from django.http import request
from django.shortcuts import redirect


def pwd_encrypt(password):
    md5 = hashlib.md5()
    md5.update(password.encode())
    result = md5.hexdigest()
    return result
